<template>
  <div>
    <div class="app-content">
      <el-empty></el-empty>
      <!--      <el-button @click="getDashboard()">测试</el-button>-->
    </div>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import handleClipboard from '@/utils/clipboard'
import { ElMessage } from 'element-plus'
import { dashboard } from '@/api/dashboard'

defineOptions({
  name: 'Dashboard'
})
const emoji = ref('')
const icon = ref('')
const loading = ref(true)
const data: any = ref({})
const font = ref({})

const copy = (text: string, event: any) => {
  handleClipboard(text, event).then((res) => {
    ElMessage.success('复制成功，粘贴到DIY对应位置即可')
  })
}

const getDashboard = () => {
  dashboard().then((res) => {
    console.log(res)
  })
}
</script>

<style scoped>
.app-content .cursor-pointer {
  margin-bottom: 10px;
}
</style>
